﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Sowrk03_28.Repository.Migrations
{
    public partial class 审计 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "CreatePeople",
                table: "GoodsInfo",
                type: "nvarchar(50)",
                maxLength: 50,
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "CreateTime",
                table: "GoodsInfo",
                type: "datetime2",
                nullable: false,
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));

            migrationBuilder.AddColumn<bool>(
                name: "IsDel",
                table: "GoodsInfo",
                type: "bit",
                nullable: false,
                defaultValue: false);

            migrationBuilder.AddColumn<DateTime>(
                name: "UpdateTime",
                table: "GoodsInfo",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "UpdateePeople",
                table: "GoodsInfo",
                type: "nvarchar(50)",
                maxLength: 50,
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "CreatePeople",
                table: "GoodsInfo");

            migrationBuilder.DropColumn(
                name: "CreateTime",
                table: "GoodsInfo");

            migrationBuilder.DropColumn(
                name: "IsDel",
                table: "GoodsInfo");

            migrationBuilder.DropColumn(
                name: "UpdateTime",
                table: "GoodsInfo");

            migrationBuilder.DropColumn(
                name: "UpdateePeople",
                table: "GoodsInfo");
        }
    }
}
